
/**
 * 头部二级导航栏
*/
function navSubnavConFn(){
    // 导航栏分类
    var AnavNames = ['小米手机', 'Redmi 红米', '电视', '笔记本', '家电', '路由器', '智能硬件', '服务', '社区'];
    // 导航栏产品图片
    var imgs = {
        0: ['./images/index/header-subnav/0/01.webp', './images/index/header-subnav/0/02.webp', './images/index/header-subnav/0/03.png', './images/index/header-subnav/0/04.png', './images/index/header-subnav/0/05.png', './images/index/header-subnav/0/06.png'],
        1: ['./images/index/header-subnav/1/01.webp', './images/index/header-subnav/1/02.webp', './images/index/header-subnav/1/03.webp', './images/index/header-subnav/1/04.jpg', './images/index/header-subnav/1/05.jpg', './images/index/header-subnav/1/06.jpg'],
        2: ['./images/index/header-subnav/2/01.webp', './images/index/header-subnav/2/02.jpg', './images/index/header-subnav/2/03.jpg', './images/index/header-subnav/2/04.png', './images/index/header-subnav/2/05.jpg', './images/index/header-subnav/2/06.jpg'],
        3: ['./images/index/header-subnav/3/01.webp', './images/index/header-subnav/3/02.webp', './images/index/header-subnav/3/03.png', './images/index/header-subnav/3/04.png', './images/index/header-subnav/3/05.png', './images/index/header-subnav/3/06.png'],
        4: ['./images/index/header-subnav/4/01.webp', './images/index/header-subnav/4/02.png', './images/index/header-subnav/4/03.jpg', './images/index/header-subnav/4/04.png', './images/index/header-subnav/4/05.jpg', './images/index/header-subnav/4/06.jpg'],
        5: ['./images/index/header-subnav/5/01.webp', './images/index/header-subnav/5/02.jpg', './images/index/header-subnav/5/03.jpg', './images/index/header-subnav/5/04.jpg', './images/index/header-subnav/5/05.jpg', './images/index/header-subnav/5/06.png'],
        6: ['./images/index/header-subnav/6/01.jpg', './images/index/header-subnav/6/02.jpg', './images/index/header-subnav/6/03.jpg', './images/index/header-subnav/6/04.jpg', './images/index/header-subnav/6/05.jpg', './images/index/header-subnav/6/05.jpg'],
    };
    // 商品名字
    var names = {
        0: ['小米9 Pro 5G', '小米MIX Alpha', '小米CC9', '小米CC9e', '小米CC9 美图定制版', '小米9'],
        1: ['Redmi K20 Pro 尊享版', 'Redmi Note 8 Pro', 'Redmi Note 8', 'Redmi K20 Pro', 'Redmi K20', 'Redmi Note 7 Pro'],
        2: ['Redmi 红米电视 70英寸 R70A', '小米壁画电视 65英寸', '小米全面屏电视E55A', '小米电视4A 32英寸', '小米电视4A 55英寸', '小米电视4A 65英寸'],
        3: ['RedmiBook 14 增强版', '游戏本2019款', '小米笔记本Air 12.5"', '小米笔记本 Air 13.3"', '小米笔记本 15.6"', '小米笔记本Pro 15.6"'],
        4: ['米家互联网空调C1（一级能效）','米家互联网空调（一级能效）', 'Redmi全自动波轮洗衣机1A', '米家互联网洗烘一体机10kg', '小米净水器', '米家扫地机器人'],
        5: ['小米路由器AC2100', '小米路由器 Mesh', '小米路由器4A 千兆版', '小米路由器 4C', '小米路由器 4A', '小米路由器 HD/Pro'],
        6: ['小米米家智能摄像机云台版', '小米小爱老师', '小米米家智能门锁', '小米小爱触屏音箱', '小爱万能遥控版', '小爱万能遥控版']
    };
    // 商品价格
    var price = {
        0: ['3699元起', '19999元', '1799元起', '1299元起', '2599元', '2799元起'],
        1: ['3699元起', '19999元', '1799元起', '1299元起', '2599元', '2799元起'],
        2: ['3799元', '6999元', '2099元', '699元', '1999元', '2999元'],
        3: ['3999元起', '499元起', '3599元起', '4699元起', '3799元起', '5499元起'],
        4: ['2599元', '2399元', '799元', '2799元起', '1699元', '1299元'],
        5: ['229元', '999元', '149元', '59元', '99元', '399元起'],
        6: ['189元', '469元起', '1199元起', '249元', '149元', '149元']
    };

    return {
        AnavNames:  AnavNames,
        imgs: imgs,
        names: names,
        price: price
    };
}



/**
 * banner轮播
*/
function bannerImgFn(){
    var banerImg = ['./images/index/banner/banner01.webp', './images/index/banner/banner02.jpg', './images/index/banner/banner03.webp', './images/index/banner/banner04.webp',
                    './images/index/banner/banner05.webp',
                   ];
    return {banerImg: banerImg};
}



/**
 * 轮播下面的 small_banner
 */
function sBannerFn(){
    var imgs = ['images/index/banner-small/secondary/01.jpg', 'images/index/banner-small/secondary/02.jpg', 'images/index/banner-small/secondary/03.jpg'];
    return {imgs: imgs};
}





/**
 * 轮播上面的侧边二级导航栏
*/
function sidebarListFn(){
    var imgs = {
        0: ['./images/index/sidebar-sub-list/0/01.webp', './images/index/sidebar-sub-list/0/02.webp', './images/index/sidebar-sub-list/0/03.webp', './images/index/sidebar-sub-list/0/04.png', './images/index/sidebar-sub-list/0/05.png', './images/index/sidebar-sub-list/0/06.png',
            './images/index/sidebar-sub-list/0/07.png', './images/index/sidebar-sub-list/0/08.png', './images/index/sidebar-sub-list/0/09.png', './images/index/sidebar-sub-list/0/10.png', './images/index/sidebar-sub-list/0/11.png', './images/index/sidebar-sub-list/0/12.webp',
            './images/index/sidebar-sub-list/0/13.webp', './images/index/sidebar-sub-list/0/14.jpg', './images/index/sidebar-sub-list/0/15.webp', './images/index/sidebar-sub-list/0/16.jpg', './images/index/sidebar-sub-list/0/17.png', './images/index/sidebar-sub-list/0/18.jpg',
            './images/index/sidebar-sub-list/0/19.png', './images/index/sidebar-sub-list/0/20.jpg', './images/index/sidebar-sub-list/0/21.jpg', './images/index/sidebar-sub-list/0/22.png', './images/index/sidebar-sub-list/0/23.jpg', './images/index/sidebar-sub-list/0/24.jpg'
        ],
        1: ['./images/index/sidebar-sub-list/1/01.webp', './images/index/sidebar-sub-list/1/02.jpg', './images/index/sidebar-sub-list/1/03.jpg', './images/index/sidebar-sub-list/1/04.png', './images/index/sidebar-sub-list/1/05.png', './images/index/sidebar-sub-list/1/06.jpg',
            './images/index/sidebar-sub-list/1/07.png', './images/index/sidebar-sub-list/1/08.png', './images/index/sidebar-sub-list/1/09.png', './images/index/sidebar-sub-list/1/10.png', './images/index/sidebar-sub-list/1/11.png', './images/index/sidebar-sub-list/1/12.jpg',
            './images/index/sidebar-sub-list/1/13.png', './images/index/sidebar-sub-list/1/14.png', './images/index/sidebar-sub-list/1/15.jpg', './images/index/sidebar-sub-list/1/16.png', './images/index/sidebar-sub-list/1/17.png', './images/index/sidebar-sub-list/1/18.jpg',
            './images/index/sidebar-sub-list/1/19.png', './images/index/sidebar-sub-list/1/20.jpg', './images/index/sidebar-sub-list/1/21.jpg', './images/index/sidebar-sub-list/1/22.png', './images/index/sidebar-sub-list/1/23.png', './images/index/sidebar-sub-list/1/24.jpg'
        ],
        2: ['./images/index/sidebar-sub-list/2/01.jpg', './images/index/sidebar-sub-list/2/02.png', './images/index/sidebar-sub-list/2/03.jpg', './images/index/sidebar-sub-list/2/04.png', './images/index/sidebar-sub-list/2/05.jpg', './images/index/sidebar-sub-list/2/06.jpg',
            './images/index/sidebar-sub-list/2/07.jpg', './images/index/sidebar-sub-list/2/08.png', './images/index/sidebar-sub-list/2/09.jpg', './images/index/sidebar-sub-list/2/10.jpg', './images/index/sidebar-sub-list/2/11.jpg', './images/index/sidebar-sub-list/2/12.webp'
        ],
        3: ['./images/index/sidebar-sub-list/3/01.png', './images/index/sidebar-sub-list/3/02.png', './images/index/sidebar-sub-list/3/03.png', './images/index/sidebar-sub-list/3/04.jpg', './images/index/sidebar-sub-list/3/05.jpg', './images/index/sidebar-sub-list/3/06.png',
            './images/index/sidebar-sub-list/3/07.jpg', './images/index/sidebar-sub-list/3/08.jpg', './images/index/sidebar-sub-list/3/09.jpg', './images/index/sidebar-sub-list/3/10.jpg', './images/index/sidebar-sub-list/3/11.jpg', './images/index/sidebar-sub-list/3/12.jpg',
            './images/index/sidebar-sub-list/3/13.jpg', './images/index/sidebar-sub-list/3/14.jpg', './images/index/sidebar-sub-list/3/15.png', './images/index/sidebar-sub-list/3/16.png', './images/index/sidebar-sub-list/3/17.jpg', './images/index/sidebar-sub-list/3/18.jpg',
            './images/index/sidebar-sub-list/3/19.jpg', './images/index/sidebar-sub-list/3/20.jpg', './images/index/sidebar-sub-list/3/21.jpg', './images/index/sidebar-sub-list/3/22.jpg', './images/index/sidebar-sub-list/3/23.jpg'
        ],
        4: ['./images/index/sidebar-sub-list/4/01.png', './images/index/sidebar-sub-list/4/02.jpg', './images/index/sidebar-sub-list/4/03.jpg', './images/index/sidebar-sub-list/4/04.jpg', './images/index/sidebar-sub-list/4/05.jpg', './images/index/sidebar-sub-list/4/06.jpg',
            './images/index/sidebar-sub-list/4/07.jpg', './images/index/sidebar-sub-list/4/08.jpg', './images/index/sidebar-sub-list/4/09.jpg', './images/index/sidebar-sub-list/4/10.jpg', './images/index/sidebar-sub-list/4/11.jpg', './images/index/sidebar-sub-list/4/12.jpg'
        ],
        5: ['./images/index/sidebar-sub-list/5/01.jpg', './images/index/sidebar-sub-list/5/02.webp', './images/index/sidebar-sub-list/5/03.webp', './images/index/sidebar-sub-list/5/04.jpg', './images/index/sidebar-sub-list/5/05.jpg', './images/index/sidebar-sub-list/5/06.jpg',
            './images/index/sidebar-sub-list/5/07.jpg', './images/index/sidebar-sub-list/5/08.jpg', './images/index/sidebar-sub-list/5/09.jpg', './images/index/sidebar-sub-list/5/10.jpg', './images/index/sidebar-sub-list/5/11.jpg', './images/index/sidebar-sub-list/5/12.png',
            './images/index/sidebar-sub-list/5/13.jpg'
        ],
        6: ['./images/index/sidebar-sub-list/6/01.jpg', './images/index/sidebar-sub-list/6/02.jpg', './images/index/sidebar-sub-list/6/03.jpg', './images/index/sidebar-sub-list/6/04.jpg', './images/index/sidebar-sub-list/6/05.jpg', './images/index/sidebar-sub-list/6/06.jpg',
            './images/index/sidebar-sub-list/6/07.jpg', './images/index/sidebar-sub-list/6/08.jpg', './images/index/sidebar-sub-list/6/09.jpg', './images/index/sidebar-sub-list/6/10.jpg', './images/index/sidebar-sub-list/6/11.jpg', './images/index/sidebar-sub-list/6/12.jpg'
        ],
        7: ['./images/index/sidebar-sub-list/7/01.jpg', './images/index/sidebar-sub-list/7/02.jpg', './images/index/sidebar-sub-list/7/03.jpg', './images/index/sidebar-sub-list/7/04.jpg', './images/index/sidebar-sub-list/7/05.jpg', './images/index/sidebar-sub-list/7/06.png',
            './images/index/sidebar-sub-list/7/07.jpg', './images/index/sidebar-sub-list/7/08.jpg', './images/index/sidebar-sub-list/7/09.jpg', './images/index/sidebar-sub-list/7/10.jpg', './images/index/sidebar-sub-list/7/11.jpg', './images/index/sidebar-sub-list/7/12.jpg',
            './images/index/sidebar-sub-list/7/13.jpg', './images/index/sidebar-sub-list/7/14.webp', './images/index/sidebar-sub-list/7/15.jpg', './images/index/sidebar-sub-list/7/16.jpg', './images/index/sidebar-sub-list/7/17.jpg', './images/index/sidebar-sub-list/7/18.jpg',
            './images/index/sidebar-sub-list/7/19.jpg', './images/index/sidebar-sub-list/7/20.jpg'
        ],
        8: ['./images/index/sidebar-sub-list/8/01.webp', './images/index/sidebar-sub-list/8/02.webp', './images/index/sidebar-sub-list/8/03.jpg', './images/index/sidebar-sub-list/8/04.jpg', './images/index/sidebar-sub-list/8/05.jpg', './images/index/sidebar-sub-list/8/06.jpg',
            './images/index/sidebar-sub-list/8/07.jpg', './images/index/sidebar-sub-list/8/08.jpg', './images/index/sidebar-sub-list/8/09.jpg', './images/index/sidebar-sub-list/8/10.jpg', './images/index/sidebar-sub-list/8/11.jpg', './images/index/sidebar-sub-list/8/12.jpg'
        ],
        9: ['./images/index/sidebar-sub-list/9/01.jpg', './images/index/sidebar-sub-list/9/02.jpg', './images/index/sidebar-sub-list/9/03.jpg', './images/index/sidebar-sub-list/9/04.jpg', './images/index/sidebar-sub-list/9/05.jpg', './images/index/sidebar-sub-list/9/06.jpg',
            './images/index/sidebar-sub-list/9/07.jpg', './images/index/sidebar-sub-list/9/08.png', './images/index/sidebar-sub-list/9/09.png', './images/index/sidebar-sub-list/9/10.jpg', './images/index/sidebar-sub-list/9/11.jpg', './images/index/sidebar-sub-list/9/12.jpg',
            './images/index/sidebar-sub-list/9/13.jpg', './images/index/sidebar-sub-list/9/14.jpg', './images/index/sidebar-sub-list/9/15.jpg', './images/index/sidebar-sub-list/9/16.jpg', './images/index/sidebar-sub-list/9/17.jpg', './images/index/sidebar-sub-list/9/18.jpg',
            './images/index/sidebar-sub-list/9/19.jpg'
        ],
    };
    var names = {
        0: ['Redmi K20 Pro 尊享版', 'Redmi Note 8 Pro', 'Redmi Note 8', '小米CC9', '小米CC美图定制版', '小米CC9e',
            '小米9', '小米9 SE', '小米MIX 3', '小米MIX 2S', '小米Max 3', '黑鲨手机2 Pro',
            '黑鲨游戏手机 2', 'Redmi K20 Pro', 'Redmi K20', 'Redmi 7A', 'Redmi 7', 'Redmi Note 7 Pro',
            'Redmi Note 7', '移动4G+专区', '小米移动 电话卡', '手机上门维修', '云服务空间月卡', '米粉卡 日租卡'
        ],
        1: ['Redmi 红米电视 70英寸', '小米壁画电视 65英寸', '小米全面屏电视', '小米电视4A 32英寸', '小米电视4A 43英寸', '小米电视4A 49英寸', 
            '小米电视4A 50英寸', '小米电视4A 55英寸', '小米电视4A 58英寸', '小米电视4A 65英寸', '小米电视4C 32英寸', '小米电视4C 40英寸', 
            '小米电视4C 43英寸', '小米电视4C 50英寸', '小米电视4C 55英寸', '小米电视4X 43英寸', '小米电视4X 55英寸', '小米电视4X 65英寸', 
            '小米电视4 55英寸', '小米电视4 65英寸', '小米电视4 75英寸', '小米电视4S', '小米电视 体育版', '小米盒子'
        ], 
        2: ['小米笔记本 15.6', '小米笔记本 13.3', '小米笔记本 12.5', 'RedmiBook 14', '小米游戏本', '小米平板4', 
            '键盘', '鼠标／鼠标垫', '转接器', '平板配件', '笔记本双肩包', '小米笔记本内胆包'
        ],
        3: ['米家立式空调', '米家空调', '滚筒洗衣机', 'Redmi全自动波轮洗衣机', '净水器', '净水器滤芯', 
            '扫地机器人', '吸尘器', '空气净化器', '电饭煲', '电磁炉', '厨房用具', 
            '电水壶', '滤水壶', '落地风扇', '投影仪', '灯具' , '插线板' , 
            '新风机', '电暖器', '电压力锅', '料理机', '电煮壶'
        ],
        4: ['手环手表', 'VR', '平衡车', '滑板车', '车载逆变器', '平衡车配件', 
            '智能后视镜', '智能记录仪', '车载空气净化器', '无线车充', '充气宝', '平衡轮' 
        ],
        5: ['打印机', '喷墨打印机', '喷墨打印机墨水', '路由器', '智能家庭', '对讲机', 
            '无人机', '摄像机', '照相机', '智能门锁', '视频门铃', '小爱老师', '小爱音箱'
        ],
        6: ['移动电源', '数据线', '车充', '无线充', '电池', '自拍杆', 
            '手机壳', '手机贴膜', '手机支架', '平板配件', '黑鲨配件', '其他配件'
        ],
        7: ['洗手机', '剃须刀', '日光镜', '牙刷', '吹风机', '体重秤', 
            '体脂秤', '早教启智', '遥控电动', '益智积木', '儿童手表', '儿童滑板车', 
            '米兔拉杆箱', '自行车', '婴儿推车', '儿童书包', '婴儿理发器', '儿童保温杯',
            '走步机', '点读笔'
        ],
        8: ['音箱 Pro', '小爱音箱', '小米小爱音箱 Play版', '线控耳机', '蓝牙耳机', '头戴耳机', 
            '品牌耳机', '蓝牙音箱', '小米AI音箱', 'k歌耳机', '小爱音箱 万能遥控版', '小爱触屏音箱'
        ],
        9: ['双肩包', '钱包', '旅行箱', '运动鞋', '服饰', '眼镜', 
            '床垫', '枕头', '沙发', '饰品', '螺丝刀', '保温杯', 
            '伞', '驱蚊器', '尤克里里', '毛巾/浴巾', '米兔', '笔', '床'
        ],
    };
    return {
        imgs: imgs,
        names: names
    };
}




/**
 * 小米闪购
*/
function limshopFn(){
    // 商品图片
    var imgs = ['./images/index/shangou/01.jpg', './images/index/shangou/02.jpg', './images/index/shangou/03.jpg', './images/index/shangou/05.jpg',
                    './images/index/shangou/06.jpg', './images/index/shangou/07.jpg', './images/index/shangou/08.jpg', './images/index/shangou/09.jpg',
                    './images/index/shangou/10.jpg', './images/index/shangou/11.jpg', './images/index/shangou/12.jpg', './images/index/shangou/13.jpg',
                    './images/index/shangou/14.jpg', './images/index/shangou/15.jpg', './images/index/shangou/16.jpg', './images/index/shangou/17.jpg',
                    './images/index/shangou/18.webp', './images/index/shangou/19.jpg'
    ];
    // 商品标题
    var titles = ['小米USB充电器30W快充版（1A1C） 白色', '小米小爱音箱 Play（白色）量产版 白色', '小米路由器4C 白色', '小米WiFi放大器Pro 黑色',
                      '小米路由器4A 纯白色', 'Redmi K20 6GB+128GB 冰川蓝', '小米路由器4A千兆版',  '小米CC9e 6GB+64GB 暗夜王子 (深空灰)',
                      '米家驱蚊器基础版 3个装 白色', 'Redmi K20 Pro 8GB+256GB 冰川蓝', '小米AI音箱', '小米9 全网通版 8GB+128GB 全息幻彩紫',
                      '小米蓝牙音频接收器 通用', '米家空气检测仪', '小米9 全网通版 8GB内存', '小米蓝牙耳机Air 白色',
                      '净化器滤芯 抗菌版', '小米9 SE 6GB+64GB 全息幻彩蓝'
    ];
    // 介绍
    var spans = ['多一种接口，多一种选择', '听音乐、语音遥控家电', '300M单频，高增益4天线', '轻松扩展WiFi信号',
                     '更高性价比的双频路由器', '弹出全面屏，4800万三摄', '双核全千兆AC1200路由器', '3200万自拍，4800万三摄',
                     '3个装 长效驱蚊', '骁龙855， 弹出全面屏', '听音乐、语音遥控家电', '全曲面轻薄幻彩机身',
                     '尽享无线音乐', '守护呼吸健康', '全息幻彩紫 256GB全息幻彩机身，骁龙855', '真无线 乐享无限自由',
                     '净化室内空气看不见的细菌', '4800万三摄/骁龙712处理器'
        ];
    // 价格
    var prices = [
                    {beforeDiscout: '49元', afterDiscout: '59元'}, {beforeDiscout: '99元', afterDiscout: '169元'}, {beforeDiscout: '59元', afterDiscout: '99元'}, {beforeDiscout: '59元', afterDiscout: '79元'},
                    {beforeDiscout: '99元', afterDiscout: '119元'}, {beforeDiscout: '1799元', afterDiscout: '2099元'}, {beforeDiscout: '149元', afterDiscout: '169元'}, {beforeDiscout: '1299元', afterDiscout: '1399元'},
                    {beforeDiscout: '99元', afterDiscout: '129元'}, {beforeDiscout: '2699元', afterDiscout: '2999元'}, {beforeDiscout: '229元', afterDiscout: '299元'}, {beforeDiscout: '2799元', afterDiscout: '3299元'},
                    {beforeDiscout: '69元', afterDiscout: '99元'}, {beforeDiscout: '329元', afterDiscout: '399元'}, {beforeDiscout: '2999元', afterDiscout: '3299元'}, {beforeDiscout: '359元', afterDiscout: '399元'},
                    {beforeDiscout: '139元', afterDiscout: '159元'}, {beforeDiscout: '1599元', afterDiscout: '1999元'}
    ];


    return {
        imgs: imgs,
        titles: titles, 
        spans: spans,
        prices: prices
    };
}



/**
 * 手机
*/
function shoujiFn(){
    // 左边的banner  img  图片
    var leftBannerImgs = { //one: './images/index/jiadian/jiadian-banner-top.webp',
    //two: './images/index/jiadian/jiadian-banner-bottom.webp' 
        one: './images/index/shouji/shouji-banner.webp'
    };
    // ul列表img标签 图片 
    var olImgs = 
        {
            one:['./images/index/shouji/01.webp', './images/index/shouji/02.webp', './images/index/shouji/03.webp', './images/index/shouji/04.webp',
                './images/index/shouji/05.webp', './images/index/shouji/06.webp', './images/index/shouji/07.webp', './images/index/shouji/08.webp'
                ]
        };
    // ul列表h3标签 name
    var olNames = 
        {
            one: ['Redmi Note 8 Pro', 'Redmi Note 8', 'Redmi K20 Pro 6GB+128GB', 'Redmi Note7',
                    'Redmi 7', '小米MIX 3 8 GB+128GB', '小米CC9', '小米9 SE'
                ]
        };
    // ul列表span标签 手机配置
    var olDispose = 
        {
            one: ['6400万全场景四摄', '千元4800万四摄', '骁龙855,弹出全面屏', '4800万拍照千元机',
                    '4000Ah超长续航', 'DXO百分拍照手机', '3200万自拍,4800万三摄', '索尼4800万三摄, 骁龙712'
                ],
        };        
    // ul列表DIV标签   price
    var olPrice = 
        {
            one: {
                // 折扣后
                0: ['2599元起', '999元起', '2200元', '1099元', '699元起', '2599元', '1799元起', '1599元起'],
                // 折扣前
                1: ['', '', '2599元', '1399元', '799元', '3599元', '', '1999元']
            }
        };
    // 下边banner img
    var bottomBannerImg = { one: './images/index/shouji/shouji-bottom-banner.webp' };


    return {
        leftBannerImgs: leftBannerImgs,
        olImgs: olImgs,
        olNames: olNames,
        olDispose: olDispose,
        olPrice: olPrice,
        bottomBannerImg: bottomBannerImg
    };
}



/**
 * 家电
*/
function jiadianFn(){
    // 左边的banner  img  图片wc
    var leftBannerImgs = { one: './images/index/jiadian/jiadian-banner-top.webp',
        two: './images/index/jiadian/jiadian-banner-bottom.webp' 
    };
    // ul列表img标签 图片 
    var olImgs = 
        {
            one:['./images/index/jiadian/01-one.webp', './images/index/jiadian/02-one.jpg', './images/index/jiadian/03-one.webp', './images/index/jiadian/04-one.jpg',
                './images/index/jiadian/05-one.webp', './images/index/jiadian/06-one.webp', './images/index/jiadian/07-one.webp'
                ],
            two:['./images/index/jiadian/01-two.jpg', './images/index/jiadian/02-two.webp', './images/index/jiadian/03-two.webp', './images/index/jiadian/04-two.jpg',
                './images/index/jiadian/05-two.jpg', './images/index/jiadian/06-two.jpg', './images/index/jiadian/07-two.webp'
                ]
        };
    // ul列表最后一个li
    var ollastGoods = 
        {
            one: {
                img: './images/index/jiadian/08-one.webp', 
                name: 'Air 13.3"2019款',
                price: '4699元起'
            },
            two: {
                img: './images/index/jiadian/08-two.jpg',
                name: '小米盒子',
                price: '299元'
            }
        };

    // ul列表h3标签 name
    var olNames = 
        {
            one: ['米家互联网空调C1（一级能效）', '米家空调', '米家互联网洗烘一体机 Pro 10kg', '小米电视4A 32英寸',
                  'Redmi全自动波轮洗衣机1A 8kg', '小米全面屏电视E55A', '15.6" 四核i7 16G 独显 512G', 
                 ],
            two: ['小米电视4A 32英寸', '小米全面屏电视E55A', '小米全面屏电视E65A', '小米电视4X 43英寸',
                  '小米电视4C 55英寸', '小米电视4A 65英寸', '小米壁画电视 65英寸', 
                 ]
        };
    // ul列表span标签 
    var olDispose = 
        {
            one: ['变频节能省电，自清洁', '出众静音，快速制冷热', '智能洗烘，省心省力', '人工智能系统，高清液晶屏',
                  '一键操作，父母都爱用', '全面屏设计，人工智能语音', '全面均衡的国民轻薄本', 
                 ],
            two: ['人工智能系统，高清液晶屏', '全面屏设计，人工智能语音', '全面屏设计，人工智能语音', 'FHD全高清屏，人工智能语音',
                  '4K HDR，人工智能系统', '4K HDR，人工智能语音系统', '壁画外观，全面屏，远场语音', 
                 ],
        };        
    // ul列表DIV标签   price
    var olPrice = 
    {
        one: {
            // 折扣后
            0: ['2599元', '1699元', '2999元', '699元', '699元起', '2099元', '4899元'],
            // 折扣前
            1: ['2799元', '1799元', '', '799元', '799元', '', '',]
          },
        two: {
            // 折扣后
            0: ['799元', '2099元', '2999元', '1399元', '1999元', '2999元', '6999元'],
            // 折扣前
            1: ['799元', '', '3999元', '1499元', '', '', '']
          }
    };
    // 下边banner img
    var bottomBannerImg = { one: './images/index/jiadian/jiadian-bottom-banner.webp' };

    return {
        leftBannerImgs: leftBannerImgs,
        olImgs: olImgs,
        ollastGoods: ollastGoods,
        olNames: olNames,
        olDispose: olDispose,
        olPrice: olPrice,
        bottomBannerImg: bottomBannerImg,

    };
}



/**
 * 智能
*/
function zhinengFn(){
    // 左边的banner  img  图片wc
    var leftBannerImgs = { one: './images/index/zhineng/zhineng-banner-top.webp',
        two: './images/index/zhineng/zhineng-banner-bottom.webp' 
    };
    // ul列表img标签 图片 
    var olImgs = 
        {
            one:['./images/index/zhineng/01-one.webp', './images/index/zhineng/02-one.webp', './images/index/zhineng/03-one.webp', './images/index/zhineng/04-one.webp',
                './images/index/zhineng/05-one.webp', './images/index/zhineng/06-one.webp', './images/index/zhineng/07-one.webp'
                ],
            two:['./images/index/zhineng/01-two.jpg', './images/index/zhineng/02-two.jpg', './images/index/zhineng/03-two.jpg', './images/index/zhineng/04-two.jpg',
                './images/index/zhineng/05-two.jpg', './images/index/zhineng/06-two.png', './images/index/zhineng/07-two.jpg'
                ]
        };
    // ul列表最后一个li
    var ollastGoods = 
        {
            one: {
                img: './images/index/zhineng/08-one.webp', 
                name: 'Air 13.3"2019款',
                price: '4699元起'
            },
            two: {
                img: './images/index/zhineng/08-two.webp',
                name: '小米盒子',
                price: '299元'
            }
        };

    // ul列表h3标签 name
    var olNames = 
        {
            one: ['小米「小爱老师」', '小米米家智能门锁 推拉式', '小米小爱音箱 Play', '小爱音箱万能遥控版',
                  '米家电饭煲4L', '小米手环4', '米家九号平衡轮', 
                 ],
            two: ['小米米家电动滑板车', '米兔折叠婴儿推车', '米兔遥控小飞机', '米家车载空气净化器',
                  'AMAZFIT 运动手表', '九号平衡车 Plus', '米家车载逆变器', 
                 ]
        };
    // ul列表span标签 
    var olDispose = 
        {
            one: ['口袋里的英语外教', '一步推拉，高端智能门锁', '听音乐、语音遥控家电', '传统家电秒变智能',
                  '890W 立体加热', '能花式酷玩的“风火轮”', '全面均衡的国民轻薄本', 
                 ],
            two: ['便携折叠，自由穿行', '出发去向往的地方', '迷你酷玩具，溜到飞起', '高效净化车内空气',
                  '扔掉手机去跑步', '一个形影不离的新伙伴', '双USB充电口，国际组合插孔', 
                 ],
        };        
    // ul列表DIV标签   price
    var olPrice = 
    {
        one: {
                // 折扣后
                0: ['499元起', '1699元', '399元', '149元', '299元', '169元', '999元'],
                // 折扣前
                1: ['', '', '169元', '199元', '', '', '',]
             },
        two: {
                // 折扣后
                0: ['1999元', '669元', '399元', '449元', '799元', '3499元', '199元'],
                // 折扣前
                1: ['', '699元', '', '', '', '', '']
            }
    };
    // 下边banner img
    var bottomBannerImg = { one: './images/index/zhineng/zhineng-bottom-banner.webp' };

    return {
        leftBannerImgs: leftBannerImgs,
        olImgs: olImgs,
        ollastGoods: ollastGoods,
        olNames: olNames,
        olDispose: olDispose,
        olPrice: olPrice,
        bottomBannerImg: bottomBannerImg,

    };
}



/**
 * 搭配
*/
function dapeiFn(){
    // 左边的banner  img  图片wc
    var leftBannerImgs = { one: './images/index/dapei/dapei-banner-top.webp',
        two: './images/index/dapei/dapei-banner-bottom.webp' 
    };
    // ul列表img标签 图片 
    var olImgs = 
        {
            one:['./images/index/dapei/01-one.webp', './images/index/dapei/02-one.webp', './images/index/dapei/03-one.jpg', './images/index/dapei/04-one.jpg',
                './images/index/dapei/05-one.jpg', './images/index/dapei/06-one.jpg', './images/index/dapei/07-one.webp'
                ],
            two:['./images/index/dapei/01-two.jpg', './images/index/dapei/02-two.jpg', './images/index/dapei/03-two.jpg', './images/index/dapei/04-two.jpg',
                './images/index/dapei/05-two.jpg', './images/index/dapei/06-two.jpg', './images/index/dapei/07-two.jpg'
                ]
        };
    // ul列表最后一个li
    var ollastGoods = 
        {
            one: {
                /*img: './images/index/jiadian/08-one.webp', 
                name: 'Air 13.3"2019款',
                price: '4699元起'*/
            },
            two: {
                /*img: './images/index/dapei/08-two.jpg',
                name: '小米盒子',
                price: '299元'*/
            }
        };

    // ul列表h3标签 name
    var olNames = 
        {
            one: ['Redmi充电宝 10000mAh 标准版 白色', 'Redmi充电宝 20000mAh 快充版', '小米插线板 5孔位', '小米无线充电器',
                  '小米蓝牙耳机AirDots青春版', '小米小爱蓝牙音箱 随身版', '小米小爱触屏音箱', 
                 ],
            two: ['小米双单元半入耳式耳机', '小米蓝牙项圈耳机', '小米圈铁耳机2', '小米随身蓝牙音箱',
                  '小米蓝牙耳机青春版', '小米运动蓝牙耳机mini', '小米蓝牙耳机AirDots青春版', 
                 ]
        };
    // ul列表span标签
    var olDispose = 
        {
            one: ['10000mAh大电量', '大容量，  可上飞机', '多重安全保护', '传统家电秒变智能',
                '雅致简约，收纳充电盒', '小巧便携，一键唤醒小爱', '好听，更好看', 
                ],
            two: ['半入耳式舒适佩戴', '挂在脖子上的好耳机', '全面升级，让声音更有质感', '全金属外壳，内置麦克风',
                '6.5 克轻巧，高清通话音质', '迷你机身, 小如蚕豆', '雅致简约，收纳充电盒', 
                ],
        };         
    // ul列表DIV标签   price
    var olPrice = 
        {
            one: {
                // 折扣后
                0: ['59元', '99元', '39元', '99元', '189元', '49元', '249元'],
                // 折扣前
                1: ['', '', '', '', '199元', '', '299元',]
                },
            two: {
                // 折扣后
                0: ['69元', '299元', '99元', '69元', '59元', '169元', '189元'],
                // 折扣前
                1: ['', '', '', '', '', '', '199元']
                }
        };
    // 下边banner img
    var bottomBannerImg = { one: './images/index/dapei/dapei-bottom-banner.webp' };

    return {
        leftBannerImgs: leftBannerImgs,
        olImgs: olImgs,
        ollastGoods: ollastGoods,
        olNames: olNames,
        olDispose: olDispose,
        olPrice: olPrice,
        bottomBannerImg: bottomBannerImg,

    };
}



/**
 * 配件
*/
function peijianFn(){
    // 左边的banner  img  图片wc
    var leftBannerImgs = { one: './images/index/peijian/peijian-banner-top.webp',
        two: './images/index/peijian/peijian-banner-bottom.webp' 
    };
    // ul列表img标签 图片 
    var olImgs = 
        {
            one:['./images/index/peijian/01-one.webp', './images/index/peijian/02-one.webp', './images/index/peijian/03-one.webp', './images/index/peijian/04-one.jpg',
                './images/index/peijian/05-one.jpg', './images/index/peijian/06-one.jpg', './images/index/peijian/07-one.webp'
                ],
            two:['./images/index/peijian/01-two.webp', './images/index/peijian/02-two.webp', './images/index/peijian/03-two.webp', './images/index/peijian/04-two.webp',
                './images/index/peijian/05-two.webp', './images/index/peijian/06-two.webp', './images/index/peijian/07-two.webp'
                ]
        };
    // ul列表最后一个li
    var ollastGoods = 
        {
            one: {
                /*img: './images/index/peijian/08-one.webp', 
                name: 'Air 13.3"2019款',
                price: '4699元起'*/
            },
            two: {
                img: './images/index/peijian/08-two.webp',
                name: '小米盒子',
                price: '299元'
            }
        };

    // ul列表h3标签 name
    var olNames = 
        {
            one: ['小米9 SE 街头风保护壳', '小米CC9e 高透果冻保护壳', 'Redmi K20 / K20 Pro 怪力魔王保护壳', '小米MIX 3 獬豸神兽保护壳',
                '米家LED随身灯', '小米USB-C数据线 编织线版', '小米9 米粉潮流保护壳', 
                ],
            two: ['小米CC9&小米CC9美图定制版 标准高透贴膜', '小米CC9e 标准高透贴膜', 'Redmi 7A标准高透贴膜', '小仙女心愿手链保护壳',
                '小米CC9 荧光色高透果冻保护壳', 'Redmi K20 / K20 Pro 怪力魔王保护壳', '小米9 ARE U OK保护壳',
                ]
        };
    // ul列表span标签 
    var olDispose = 
        {
            one: ['简约时尚，多彩三色', '更薄更清透', '怪力魔王专属定制', '因为独特而备受瞩目',
                '小巧轻便 5级亮度调节', '高强度纤维编制线体', '个性名字定制，多彩选择', 
                ],
            two: ['高清透亮，耐磨性强', '高清透亮，耐磨性强', '高清透亮，耐磨性强', '手链绕于指尖，仙气满满',
                '玩转多彩青春色', '怪力魔王专属定制', '一个与众不同的保护壳', 
                ],
        };      
    // ul列表DIV标签   price
    var olPrice = 
        {
            one: {
                // 折扣后
                0: ['49元', '49元', '39元', '32.9元', '19.9元', '18.9元起', '39元'],
                // 折扣前
                1: ['', '', '', '69元', '', '', '49元',]
                },
            two: {
                // 折扣后
                0: ['19元', '19元', '19元', '199元', '49元', '39元', '39元'],
                // 折扣前
                1: ['', '', '', '', '', '', '49元']
                }
        };
    // 下边banner img
    var bottomBannerImg = { one: './images/index/peijian/peijian-bottom-banner.webp' };

    return {
        leftBannerImgs: leftBannerImgs,
        olImgs: olImgs,
        ollastGoods: ollastGoods,
        olNames: olNames,
        olDispose: olDispose,
        olPrice: olPrice,
        bottomBannerImg: bottomBannerImg,

    };
}



/**
 * 周边
*/
function zhoubianFn(){
    // 左边的banner  img  图片wc
    var leftBannerImgs = { one: './images/index/zhoubian/zhoubian-banner-top.webp',
        two: './images/index/zhoubian/zhoubian-banner-bottom.webp' 
    };
    // ul列表img标签 图片 
    var olImgs = 
        {
            one:['./images/index/zhoubian/01-one.webp', './images/index/zhoubian/02-one.webp', './images/index/zhoubian/03-one.webp', './images/index/zhoubian/04-one.webp',
                './images/index/zhoubian/05-one.webp', './images/index/zhoubian/06-one.webp', './images/index/zhoubian/07-one.jpg'
                ],
            two:['./images/index/zhoubian/01-two.webp', './images/index/zhoubian/02-two.webp', './images/index/zhoubian/03-two.webp', './images/index/zhoubian/04-two.webp',
                './images/index/zhoubian/05-two.png', './images/index/zhoubian/06-two.jpg', './images/index/zhoubian/07-two.jpg'
                ]
        };
    // ul列表最后一个li
    var ollastGoods = 
        {
            one: {
                img: './images/index/zhoubian/08-one.jpg', 
                name: 'Air 13.3"2019款',
                price: '4699元起'
            },
            two: {
                /*img: './images/index/jiadian/08-two.jpg',
                name: '小米盒子',
                price: '299元'*/
            }
        };

    // ul列表h3标签 name
    var olNames = 
        {
            one: ['米家飞行员太阳镜 Pro', '小米巨能写中性笔10支装', '小米旅行箱 20英寸 布朗熊限量版', '米家迷你保温杯',
                '米家驱蚊器基础版 3个装', '3卷装抽绳式垃圾袋', '贝医生巴氏牙刷 四色装', 
                ],
            two: ['90分框体旅行箱', '小米商旅多功能双肩包 2', '米家飞行员太阳镜 Pro', '小米小背包',
                'Free Tie 真皮板鞋 米家定制', '自动折叠伞', '最生活毛巾•青春系列',
                ]
        };
    // ul列表span标签 
    var olDispose = 
        {
            one: ['尼龙偏光，轻巧佩戴', '一支顶4支，超长顺滑书写', '“国际巨星” LINE FRIENDS布朗熊', '可以随身携带的温度',
                '3个装 长效驱蚊', '让清洁更简单', '进口刷毛，好品质', 
                ],
            two: ['专利轻量合金中框，轻盈坚固', '商务旅行多场景，切换无压力', '尼龙偏光，轻巧佩戴', '小身材大容量， 更精彩！',
                '做一双简单的板鞋', '防泼水伞布，轻盈拒水', '3秒吸水，杀菌无刺激', 
                ],
        };       
    // ul列表DIV标签   price
    var olPrice = 
        {
            one: {
                // 折扣后
                0: ['179元', '9.99元', '399元', '49元', '99元', '14.9元', '39.9元'],
                // 折扣前
                1: ['199元', '', '', '', '129元', '', '',]
                },
            two: {

                // 折扣后
                0: ['599元起', '199元', '179元', '29元', '129元', '94元', '19.9元'],
                // 折扣前29元
                1: ['', '', '199元', '', '199元', '99元', '']
                }
        };
    // 下边banner img
    var bottomBannerImg = { one: './images/index/zhoubian/zhoubian-bottom-banner.webp' };

    return {
        leftBannerImgs: leftBannerImgs,
        olImgs: olImgs,
        ollastGoods: ollastGoods,
        olNames: olNames,
        olDispose: olDispose,
        olPrice: olPrice,
        bottomBannerImg: bottomBannerImg,

    };
}



/**
 * 视频
*/
function shipinFn(){
    var imgs = ['./images/index/video/01.webp', './images/index/video/02.webp', './images/index/video/03.webp', './images/index/video/04.webp'];
    var title = ['Redmi Note 8 系列发布会', '小米CC9', 'Redmi Note 7系列', '黑鲨游戏手机2 Pro'];
    var span = ['', '深蓝星球', '镜花水月', '指尖主宰 发布会'];
    return {
        imgs: imgs,
        title: title,
        span: span
    };
}
